package com.create.prototype;

/**原型模式
 * @author lsh
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Prototype prototype = new ConcreatePrototype("男", "女");
		Prototype prototype2 = (Prototype) prototype.clone();
		System.out.println(prototype==prototype2);
		System.out.println(prototype2.getName()+prototype2.getSex());
	}

}
